import axiosService from '@/http/axiosService'

export const getProductList = () => {
  return axiosService({
    url: '/backend/productList',
    method: 'post'
  })
}

export const getRepaySchemeListById = (id, pageNo, pageSize) => {
  return axiosService({
    url: '/backend/getConfigList',
    method: 'post',
    data: {
      product_id: id,
      page_no: pageNo,
      page_size: pageSize
    }
  })
}
export const updateConfigStatus = (id, status) => {
  return axiosService({
    url: '/backend/updateConfigStatus',
    method: 'post',
    data: {
      pay_config_id: id,
      config_status: status
    }
  })
}

export const saveRepayScheme = (data) => {
  return axiosService.post('/backend/saveConfig', data)
}
